package com.grandtech.insurance.feign;

import com.grandtech.insurance.common.R2;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

// @FeignClient(name = "ossserver", path = "/ossserver")
@FeignClient(name = "ossserver", url = "")
public interface OssFeignService {

    @GetMapping("/api/v1/url")
    R2<String> url(@RequestParam(value = "endpoint") String endpoint,
                   @RequestParam(value = "bucketName") String bucketName,
                   @RequestParam(value = "accessKeyId") String accessKeyId,
                   @RequestParam(value = "key") String key,
                   @RequestParam(value = "type") Integer type);

}
